-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent sort order for minikube addons list
#2446
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zcahana Assign the PR to them by writing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Can one of the admins verify this patch? |
/assign @dlorenc |
Note that I didn't add any unit-test for this, but tested manually. zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ git log -n1 --oneline
02f3014 List addons in a consistent sort order
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ make
GOOS=linux go build -tags "container_image_ostree_stub containers_image_openpgp" -ldflags="-X k8s.io/minikube/pkg/version.version=v0.24.1 -X k8s.io/minikube/pkg/version.isoVersion=v0.24.0 -X k8s.io/minikube/pkg/version.isoPath=minikube/iso -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitCommit=925c127ec6b946659ad0fd596fa959be43f0cc05 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitVersion=v1.9.0 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitTreeState=dirty -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.buildDate=2018-01-22T12:29:24Z -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitCommit=925c127ec6b946659ad0fd596fa959be43f0cc05 -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitVersion=v1.9.0 -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.gitTreeState=dirty -X k8s.io/minikube/vendor/k8s.io/client-go/pkg/version.buildDate=2018-01-22T12:29:24Z " -a -o out/minikube-linux-amd64 k8s.io/minikube/cmd/minikube
cp ./out/minikube-linux-amd64 ./out/minikube
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ ./out/minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: disabled
- default-storageclass: enabled
- efk: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- registry: disabled
- registry-creds: disabled
- storage-provisioner: enabled
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$
zvic@zvic-vbox:~/Workspace/go/src/k8s.io/minikube (sort_addons_list)$ ./out/minikube addons list
- addon-manager: enabled
- coredns: disabled
- dashboard: disabled
- default-storageclass: enabled
- efk: disabled
- heapster: disabled
- ingress: disabled
- kube-dns: enabled
- registry: disabled
- registry-creds: disabled
- storage-provisioner: enabled |
59101f0
to
02f3014
Compare
@minikube-bot ok to test |
This PR modifies
minikube addons list
to list addons in a lexicographic sort order, so that the output is consistent across invocations ofminikube addons list
.Resolves #2445.